.class public Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field public a:Landroid/os/Handler;

.field private b:Landroid/content/Context;

.field private c:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private d:Landroid/widget/ListView;

.field private e:Ljava/util/ArrayList;

.field private f:Ljava/lang/String;

.field private g:Lcom/waiqin365/lightapp/dailyreport/view/bs;

.field private h:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->f:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 8

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "models"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_b

    const-string/jumbo v2, "models"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    :goto_0
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v0, v3, :cond_a

    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v4, Lcom/waiqin365/lightapp/dailyreport/c/j;

    invoke-direct {v4}, Lcom/waiqin365/lightapp/dailyreport/c/j;-><init>()V

    const-string/jumbo v5, "model_id"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->a:Ljava/lang/String;

    const-string/jumbo v5, "model_name"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->b:Ljava/lang/String;

    const-string/jumbo v5, "model_format"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    const-string/jumbo v5, "model_format"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    :cond_0
    const-string/jumbo v5, "blog_type"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    const-string/jumbo v5, "model_key"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    const-string/jumbo v5, "model_key"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->e:Ljava/lang/String;

    :cond_1
    const-string/jumbo v5, "visible_range"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    const-string/jumbo v5, "visible_range"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->f:Ljava/lang/String;

    :cond_2
    const-string/jumbo v3, "%s:%s"

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    iget-object v7, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->a:Ljava/lang/String;

    aput-object v7, v5, v6

    const/4 v6, 0x1

    iget-object v7, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->e:Ljava/lang/String;

    aput-object v7, v5, v6

    invoke-static {v3, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-eq v0, v3, :cond_3

    const-string/jumbo v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_3
    const-string/jumbo v3, "1"

    iget-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_6

    iget-object v3, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_5

    new-instance v3, Lcom/waiqin365/lightapp/dailyreport/c/j;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/dailyreport/c/j;-><init>()V

    const-string/jumbo v5, "1"

    iput-object v5, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->a:Ljava/lang/String;

    const-string/jumbo v5, "1"

    iput-object v5, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    const-string/jumbo v5, ""

    iput-object v5, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    const v5, 0x7f080219

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->b:Ljava/lang/String;

    iget-object v4, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->f:Ljava/lang/String;

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->f:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_4
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0

    :cond_5
    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    const-string/jumbo v0, "blogmodel_cache_key"

    invoke-static {p0, v0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;)V

    :goto_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->d()V

    return-void

    :cond_6
    :try_start_1
    const-string/jumbo v3, "5"

    iget-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_8

    iget-object v3, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_7

    new-instance v3, Lcom/waiqin365/lightapp/dailyreport/c/j;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/dailyreport/c/j;-><init>()V

    const-string/jumbo v4, "5"

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->a:Ljava/lang/String;

    const-string/jumbo v4, "5"

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    const-string/jumbo v4, ""

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    const v4, 0x7f080875

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->b:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_7
    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_8
    const-string/jumbo v3, "6"

    iget-object v5, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    iget-object v3, v4, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_9

    new-instance v3, Lcom/waiqin365/lightapp/dailyreport/c/j;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/dailyreport/c/j;-><init>()V

    const-string/jumbo v4, "6"

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->a:Ljava/lang/String;

    const-string/jumbo v4, "6"

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    const-string/jumbo v4, ""

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    const v4, 0x7f08055e

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/dailyreport/c/j;->b:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    :cond_9
    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    :cond_a
    const-string/jumbo v0, "blogmodel_cache_key"

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_2

    :cond_b
    const-string/jumbo v0, "blogmodel_cache_key"

    invoke-static {p0, v0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_2
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method private b()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/dailyreport/a;-><init>(Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->a:Landroid/os/Handler;

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;)Lcom/waiqin365/lightapp/dailyreport/view/bs;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->g:Lcom/waiqin365/lightapp/dailyreport/view/bs;

    return-object v0
.end method

.method private c()V
    .locals 3

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "blogmodel_data_new"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    sget-object v1, Lcom/waiqin365/lightapp/dailyreport/util/a;->i:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-static {p0, v1, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v1

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->a(Ljava/lang/String;)V

    if-eqz v1, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->d()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e()V

    goto :goto_0
.end method

.method private d()V
    .locals 2

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/c/j;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/dailyreport/c/j;-><init>()V

    const-string/jumbo v1, "2"

    iput-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->a:Ljava/lang/String;

    const-string/jumbo v1, "2"

    iput-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    const v1, 0x7f080759

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private e()V
    .locals 3

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/b/a/c;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/dailyreport/b/a/c;-><init>()V

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->a:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/dailyreport/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/dailyreport/b/a/a;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/b/b;->start()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 4

    const/16 v3, 0x8

    const v0, 0x7f0c0599

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c:Lcom/waiqin365/base/login/mainview/TitleBar;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f08000d

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/TitleBar;->setTitleText(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->g:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c059a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->d:Landroid/widget/ListView;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->c()V

    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/view/bs;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/bs;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->g:Lcom/waiqin365/lightapp/dailyreport/view/bs;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->d:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->d:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->g:Lcom/waiqin365/lightapp/dailyreport/view/bs;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method public back()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "newinfolist"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/16 v1, 0x1e

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->setResult(ILandroid/content/Intent;)V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->overridePendingTransition(II)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    packed-switch p2, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    const-string/jumbo v0, "newinfo"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/g;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->h:Ljava/util/ArrayList;

    if-nez v1, :cond_0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->h:Ljava/util/ArrayList;

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1e
        :pswitch_0
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c008a
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->requestWindowFeature(I)Z

    const v0, 0x7f0300f0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->setContentView(I)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    sget-object v0, Lcom/fiberhome/gaea/client/b/a/a;->b:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->f:Ljava/lang/String;

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->f:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->a()V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-le p3, v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/j;

    const/4 v1, 0x0

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_2

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "newtype"

    const-string/jumbo v3, "1"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visible_range"

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->f:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    move-object v0, v1

    :goto_1
    if-eqz v0, :cond_0

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_2
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "dailyItemInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    move-object v0, v1

    goto :goto_1

    :cond_3
    const-string/jumbo v2, "5"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_4

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "newtype"

    const-string/jumbo v3, "5"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visible_range"

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->f:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    move-object v0, v1

    goto :goto_1

    :cond_4
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "dailyItemInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    move-object v0, v1

    goto :goto_1

    :cond_5
    const-string/jumbo v2, "6"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->d:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_6

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "newtype"

    const-string/jumbo v3, "6"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "visible_range"

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->f:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    move-object v0, v1

    goto/16 :goto_1

    :cond_6
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "dailyItemInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    move-object v0, v1

    goto/16 :goto_1

    :cond_7
    const-string/jumbo v2, "2"

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;->b:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/dailyreport/NewDailyReportActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "newtype"

    const-string/jumbo v2, "2"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto/16 :goto_1

    :cond_8
    move-object v0, v1

    goto/16 :goto_1
.end method
